home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: FW_CDragCommand--BeginDr
- Sent: 3/6/96 3:51 PM
- Received: 3/6/96 3:01 PM
- From: Mary Boetcher, Mary_Boetcher@quickmail.apple.com
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- Reply to: RE>FW_CDragCommand--BeginDrag
-
- You're correct, this is a bug that has been fixed. The call to
- MarkActionHistory was removed, and the code in
- FW_CDragCommand::AbortTransaction was changed to call
- undo->AbortCurrentTransaction instead of ClearActionHistory.
-
- Mary Boetcher
- ODF Person
- -----
- After implementing my undoable CDropCommand subclass, I can successfully
- undo/redo a Drag-Move within my part. I am only allowed one level of undo,
- however. In looking through the code, FW_CDragCommand::BeginDrag calls
- undo->MarkActionHistory(ev), with the comment "// in case operation fails and
- we need to roll back transactions." My reading of the OpenDoc Programmer's
- Guide suggests that marking is used for creating temporary subhistories,
- while rolling back a multistage transaction is accomplished without marking
- by calling AbortCurrentTransaction. This additional mark would be sufficient
- to prevent multiple levels of undo. Is this a bug in
- FW_CDragCommand::BeginDrag, or am I missing something?
-
-
-